package com.aqie.blog.repository;

import com.aqie.blog.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

/*public interface UserRepository extends CrudRepository<User, Long>{
    User getUserById(Long id);
}*/
public interface UserRepository extends JpaRepository<User, Long>{
    Page<User> findByNameLike(String name, Pageable pageable);
    User findByUsername(String username);
}